export default defineAppConfig({
  pages: [
    'pages/index/index',
    'pages/overview/index',
    'pages/user/customerServiceChat/index',
    'pages/discover/index',
    'pages/cart/index',
    'pages/user/index'
  ],
  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: '家伟的快捷记账',
    navigationBarTextStyle: 'black'
  },
  tabBar: {
    color: '#666',
    selectedColor: '#1890ff',
    backgroundColor: '#fff',
    borderStyle: 'black',
    list: [
      {
        pagePath: 'pages/index/index',
        text: '记账',
        // 注意: 微信小程序 tabBar 图标仅支持 .png/.jpg/.jpeg 格式
        iconPath: './resource/nojiz.png',
        selectedIconPath: './resource/jizhang.png'
      },
      {
        pagePath: 'pages/overview/index',
        text: '概况',
        iconPath: './resource/noqkuang.png',
        selectedIconPath: './resource/qkuang.png'
      },
      {
        pagePath: 'pages/discover/index',
        text: '图表',
        iconPath: './resource/notubiao.png',
        selectedIconPath: './resource/tubiao.png'
      },
      {
        pagePath: 'pages/user/index',
        text: '我的',
        iconPath: './resource/nouser.png',
        selectedIconPath: './resource/user.png'
      }
    ]
  }
  // permission 配置在实际需要时再添加
  // permission: {
  //   'scope.userLocation': {
  //     desc: '你的位置信息将用于展示附近的服务'
  //   }
  // }
})